//
//  KDSubCommentCell.m
//  WangJingApp
//
//  Created by 魏强 on 17/1/6.
//  Copyright © 2017年 KDTech. All rights reserved.
//

#import "KDSubCommentCell.h"
@interface KDSubCommentCell ()
@property (weak, nonatomic) IBOutlet UILabel *nameLb;
@property (weak, nonatomic) IBOutlet UILabel *timeLb;
@property (weak, nonatomic) IBOutlet UILabel *commentLb;

@end
@implementation KDSubCommentCell

+ (instancetype)cellWithTableView:(UITableView *)tableView{
    static NSString *cellId =@"KDSubCommentCell";
    KDSubCommentCell *cell =[tableView dequeueReusableCellWithIdentifier:cellId];
    cell.backgroundColor = BackGroundColor;
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    //监听收藏状态改变之后的通知
    
    return cell;
}
- (void)setModel:(KDSubCommentCellModel *)model{
    _model = model;
    self.nameLb.text = model.name;
    self.timeLb.text = model.time;
    self.commentLb.text = model.comment;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
